package cn.ywsj.ywsjmidtier.service;

import cn.ywsj.ywsjmidtier.common.Connect;
import com.alibaba.fastjson.JSONObject;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@Api(tags = "产品分类")
@FeignClient(url = Connect.XSX_URL,name = "xsx")
public interface WechatProductClassFeign {

    /**
     * 子分类
     * @param classId
     * @return
     */
    @ApiOperation("子分类")
    @RequestMapping(value = {"wechat/productclassmgr/ajaxgetproductclass"}, method = {RequestMethod.GET})
    String ajaxGetProductClass(@RequestParam("classId") String classId );

    /**
     * 分类
     * @param jsonObject
     * @return
     */
    @ApiOperation("分类")
    @RequestMapping(value = {"/wechat/productclassmgr/ajaxgetproductclasslist"}, method = {RequestMethod.GET})
    String ajaxGetProductClassList(@RequestParam("jsonObject")JSONObject jsonObject);
}
